<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>chimera.util.output</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="chimera-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://chimera.ufsc.br/">Chimera - Observatoty Automation System</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="chimera-module.html">Package&nbsp;chimera</a> ::
        <a href="chimera.util-module.html">Package&nbsp;util</a> ::
        Module&nbsp;output
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="chimera.util.output-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="chimera.util.output-module.html">Module chimera.util.output</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># Copyright 1998-2004 Gentoo Foundation</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Distributed under the terms of the GNU General Public License v2</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># $Id: output.py,v 1.1 2006/03/06 18:13:31 henrique Exp $</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt><tt class="py-op">,</tt><tt class="py-name">sys</tt><tt class="py-op">,</tt><tt class="py-name">re</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable chimera.util.output.havecolor=chimera.util.output-module.html#havecolor"><a title="chimera.util.output.havecolor" class="py-name" href="#" onclick="return doclink('link-0', 'havecolor', 'link-0');">havecolor</a></tt><tt class="py-op">=</tt><tt class="py-number">1</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt id="link-1" class="py-name" targets="Variable chimera.util.output.dotitles=chimera.util.output-module.html#dotitles"><a title="chimera.util.output.dotitles" class="py-name" href="#" onclick="return doclink('link-1', 'dotitles', 'link-1');">dotitles</a></tt><tt class="py-op">=</tt><tt class="py-number">1</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt id="link-2" class="py-name" targets="Variable chimera.util.output.spinpos=chimera.util.output-module.html#spinpos"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-2', 'spinpos', 'link-2');">spinpos</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable chimera.util.output.spinner=chimera.util.output-module.html#spinner"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-3', 'spinner', 'link-3');">spinner</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"/-\\|/-\\|/-\\|/-\\|\\-/|\\-/|\\-/|\\-/|"</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt id="link-4" class="py-name" targets="Variable chimera.util.output.esc_seq=chimera.util.output-module.html#esc_seq"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-4', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"\x1b["</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable chimera.util.output.g_attr=chimera.util.output-module.html#g_attr"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-5', 'g_attr', 'link-5');">g_attr</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt id="link-6" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-6', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"normal"</tt><tt class="py-op">]</tt>       <tt class="py-op">=</tt>  <tt class="py-number">0</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt id="link-7" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-7', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bold"</tt><tt class="py-op">]</tt>         <tt class="py-op">=</tt>  <tt class="py-number">1</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt id="link-8" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-8', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"faint"</tt><tt class="py-op">]</tt>        <tt class="py-op">=</tt>  <tt class="py-number">2</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt id="link-9" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-9', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"standout"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt>  <tt class="py-number">3</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt id="link-10" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-10', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"underline"</tt><tt class="py-op">]</tt>    <tt class="py-op">=</tt>  <tt class="py-number">4</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt id="link-11" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-11', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"blink"</tt><tt class="py-op">]</tt>        <tt class="py-op">=</tt>  <tt class="py-number">5</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt id="link-12" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-12', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"overline"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt>  <tt class="py-number">6</tt>  <tt class="py-comment"># Why is overline actually useful?</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt id="link-13" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-13', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"reverse"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt>  <tt class="py-number">7</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt id="link-14" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-14', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"invisible"</tt><tt class="py-op">]</tt>    <tt class="py-op">=</tt>  <tt class="py-number">8</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt id="link-15" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-15', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"no-attr"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt class="py-number">22</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt id="link-16" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-16', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"no-standout"</tt><tt class="py-op">]</tt>  <tt class="py-op">=</tt> <tt class="py-number">23</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt id="link-17" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-17', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"no-underline"</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">24</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt id="link-18" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-18', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"no-blink"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt class="py-number">25</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt id="link-19" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-19', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"no-overline"</tt><tt class="py-op">]</tt>  <tt class="py-op">=</tt> <tt class="py-number">26</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt id="link-20" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-20', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"no-reverse"</tt><tt class="py-op">]</tt>   <tt class="py-op">=</tt> <tt class="py-number">27</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-comment"># 28 isn't defined?</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># 29 isn't defined?</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt id="link-21" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-21', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"black"</tt><tt class="py-op">]</tt>        <tt class="py-op">=</tt> <tt class="py-number">30</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt id="link-22" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-22', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"red"</tt><tt class="py-op">]</tt>          <tt class="py-op">=</tt> <tt class="py-number">31</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt id="link-23" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-23', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"green"</tt><tt class="py-op">]</tt>        <tt class="py-op">=</tt> <tt class="py-number">32</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"><tt id="link-24" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-24', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"yellow"</tt><tt class="py-op">]</tt>       <tt class="py-op">=</tt> <tt class="py-number">33</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"><tt id="link-25" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-25', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"blue"</tt><tt class="py-op">]</tt>         <tt class="py-op">=</tt> <tt class="py-number">34</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"><tt id="link-26" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-26', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"magenta"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt class="py-number">35</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"><tt id="link-27" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-27', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"cyan"</tt><tt class="py-op">]</tt>         <tt class="py-op">=</tt> <tt class="py-number">36</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt id="link-28" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-28', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"white"</tt><tt class="py-op">]</tt>        <tt class="py-op">=</tt> <tt class="py-number">37</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"><tt class="py-comment"># 38 isn't defined?</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt id="link-29" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-29', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"default"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt class="py-number">39</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"><tt id="link-30" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-30', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_black"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt class="py-number">40</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"><tt id="link-31" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-31', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_red"</tt><tt class="py-op">]</tt>       <tt class="py-op">=</tt> <tt class="py-number">41</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt id="link-32" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-32', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_green"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt class="py-number">42</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt id="link-33" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-33', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_yellow"</tt><tt class="py-op">]</tt>    <tt class="py-op">=</tt> <tt class="py-number">43</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"><tt id="link-34" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-34', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_blue"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt class="py-number">44</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"><tt id="link-35" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-35', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_magenta"</tt><tt class="py-op">]</tt>   <tt class="py-op">=</tt> <tt class="py-number">45</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"><tt id="link-36" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-36', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_cyan"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt class="py-number">46</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line"><tt id="link-37" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-37', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_white"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt class="py-number">47</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line"><tt id="link-38" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-38', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-string">"bg_default"</tt><tt class="py-op">]</tt>   <tt class="py-op">=</tt> <tt class="py-number">49</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"><tt class="py-comment"># make_seq("blue", "black", "normal")</tt> </tt>
<a name="color"></a><div id="color-def"><a name="L58"></a><tt class="py-lineno"> 58</tt> <a class="py-toggle" href="#" id="color-toggle" onclick="return toggle('color');">-</a><tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#color">color</a><tt class="py-op">(</tt><tt class="py-param">fg</tt><tt class="py-op">,</tt> <tt class="py-param">bg</tt><tt class="py-op">=</tt><tt class="py-string">"default"</tt><tt class="py-op">,</tt> <tt class="py-param">attr</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-string">"normal"</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="color-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="color-expanded"><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">    <tt class="py-name">mystr</tt> <tt class="py-op">=</tt> <tt id="link-39" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-39', 'esc_seq', 'link-4');">esc_seq</a></tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> <tt class="py-op">+</tt> <tt class="py-string">"%02d"</tt> <tt class="py-op">%</tt> <tt id="link-40" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-40', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-name">fg</tt><tt class="py-op">]</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">x</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">bg</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-name">attr</tt><tt class="py-op">:</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-name">mystr</tt> <tt class="py-op">+=</tt> <tt class="py-string">";%02d"</tt> <tt class="py-op">%</tt> <tt id="link-41" class="py-name"><a title="chimera.util.output.g_attr" class="py-name" href="#" onclick="return doclink('link-41', 'g_attr', 'link-5');">g_attr</a></tt><tt class="py-op">[</tt><tt class="py-name">x</tt><tt class="py-op">]</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">mystr</tt><tt class="py-op">+</tt><tt class="py-string">"m"</tt> </tt>
</div><a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line"> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line"> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line"> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt id="link-42" class="py-name" targets="Variable chimera.util.output.codes=chimera.util.output-module.html#codes"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-42', 'codes', 'link-42');">codes</a></tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"><tt id="link-43" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-43', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt id="link-44" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-44', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"39;49;00m"</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line"> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt id="link-45" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-45', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"bold"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt id="link-46" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-46', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"01m"</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"><tt id="link-47" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-47', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"faint"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt id="link-48" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-48', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"02m"</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"><tt id="link-49" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-49', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"standout"</tt><tt class="py-op">]</tt>  <tt class="py-op">=</tt> <tt id="link-50" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-50', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"03m"</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"><tt id="link-51" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-51', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"underline"</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-52" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-52', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"04m"</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"><tt id="link-53" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-53', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"blink"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt id="link-54" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-54', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"05m"</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line"><tt id="link-55" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-55', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"overline"</tt><tt class="py-op">]</tt>  <tt class="py-op">=</tt> <tt id="link-56" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-56', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"06m"</tt>  <tt class="py-comment"># Who made this up? Seriously.</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"><tt id="link-57" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-57', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"teal"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt id="link-58" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-58', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"36m"</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"><tt id="link-59" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-59', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"turquoise"</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-60" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-60', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"36;01m"</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"><tt id="link-61" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-61', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"fuchsia"</tt><tt class="py-op">]</tt>   <tt class="py-op">=</tt> <tt id="link-62" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-62', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"35;01m"</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"><tt id="link-63" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-63', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"purple"</tt><tt class="py-op">]</tt>    <tt class="py-op">=</tt> <tt id="link-64" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-64', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"35m"</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line"> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line"><tt id="link-65" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-65', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"blue"</tt><tt class="py-op">]</tt>      <tt class="py-op">=</tt> <tt id="link-66" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-66', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"34;01m"</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"><tt id="link-67" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-67', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"darkblue"</tt><tt class="py-op">]</tt>  <tt class="py-op">=</tt> <tt id="link-68" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-68', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"34m"</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt id="link-69" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-69', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"green"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt id="link-70" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-70', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"32;01m"</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt id="link-71" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-71', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"darkgreen"</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-72" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-72', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"32m"</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"><tt id="link-73" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-73', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"yellow"</tt><tt class="py-op">]</tt>    <tt class="py-op">=</tt> <tt id="link-74" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-74', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"33;01m"</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt id="link-75" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-75', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"brown"</tt><tt class="py-op">]</tt>     <tt class="py-op">=</tt> <tt id="link-76" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-76', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"33m"</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"><tt id="link-77" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-77', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"red"</tt><tt class="py-op">]</tt>       <tt class="py-op">=</tt> <tt id="link-78" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-78', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"31;01m"</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt id="link-79" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-79', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"darkred"</tt><tt class="py-op">]</tt>   <tt class="py-op">=</tt> <tt id="link-80" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-80', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"31m"</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"> </tt>
<a name="nc_len"></a><div id="nc_len-def"><a name="L94"></a><tt class="py-lineno"> 94</tt> <a class="py-toggle" href="#" id="nc_len-toggle" onclick="return toggle('nc_len');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#nc_len">nc_len</a><tt class="py-op">(</tt><tt class="py-param">mystr</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="nc_len-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="nc_len-expanded"><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">    <tt class="py-name">tmp</tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">sub</tt><tt class="py-op">(</tt><tt id="link-81" class="py-name"><a title="chimera.util.output.esc_seq" class="py-name" href="#" onclick="return doclink('link-81', 'esc_seq', 'link-4');">esc_seq</a></tt> <tt class="py-op">+</tt> <tt class="py-string">"^m]+m"</tt><tt class="py-op">,</tt> <tt class="py-string">""</tt><tt class="py-op">,</tt> <tt class="py-name">mystr</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">tmp</tt><tt class="py-op">)</tt> </tt>
</div><a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"> </tt>
<a name="xtermTitle"></a><div id="xtermTitle-def"><a name="L98"></a><tt class="py-lineno"> 98</tt> <a class="py-toggle" href="#" id="xtermTitle-toggle" onclick="return toggle('xtermTitle');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#xtermTitle">xtermTitle</a><tt class="py-op">(</tt><tt class="py-param">mystr</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="xtermTitle-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="xtermTitle-expanded"><a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-82" class="py-name"><a title="chimera.util.output.havecolor" class="py-name" href="#" onclick="return doclink('link-82', 'havecolor', 'link-0');">havecolor</a></tt> <tt class="py-keyword">and</tt> <tt id="link-83" class="py-name"><a title="chimera.util.output.dotitles" class="py-name" href="#" onclick="return doclink('link-83', 'dotitles', 'link-1');">dotitles</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">"TERM"</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt class="py-name">isatty</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-name">myt</tt><tt class="py-op">=</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">[</tt><tt class="py-string">"TERM"</tt><tt class="py-op">]</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-name">legal_terms</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">"xterm"</tt><tt class="py-op">,</tt><tt class="py-string">"Eterm"</tt><tt class="py-op">,</tt><tt class="py-string">"aterm"</tt><tt class="py-op">,</tt><tt class="py-string">"rxvt"</tt><tt class="py-op">,</tt><tt class="py-string">"screen"</tt><tt class="py-op">,</tt><tt class="py-string">"kterm"</tt><tt class="py-op">,</tt><tt class="py-string">"rxvt-unicode"</tt><tt class="py-op">]</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">term</tt> <tt class="py-keyword">in</tt> <tt class="py-name">legal_terms</tt><tt class="py-op">:</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">myt</tt><tt class="py-op">.</tt><tt class="py-name">startswith</tt><tt class="py-op">(</tt><tt class="py-name">term</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name" targets="Method chimera.util.etree.ElementTree.ElementTree.write()=chimera.util.etree.ElementTree.ElementTree-class.html#write"><a title="chimera.util.etree.ElementTree.ElementTree.write" class="py-name" href="#" onclick="return doclink('link-84', 'write', 'link-84');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"\x1b]2;"</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">mystr</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-string">"\x07"</tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt class="py-name">flush</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">                <tt class="py-keyword">break</tt> </tt>
</div><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"> </tt>
<a name="xtermTitleReset"></a><div id="xtermTitleReset-def"><a name="L108"></a><tt class="py-lineno">108</tt> <a class="py-toggle" href="#" id="xtermTitleReset-toggle" onclick="return toggle('xtermTitleReset');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#xtermTitleReset">xtermTitleReset</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="xtermTitleReset-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="xtermTitleReset-expanded"><a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-85" class="py-name"><a title="chimera.util.output.havecolor" class="py-name" href="#" onclick="return doclink('link-85', 'havecolor', 'link-0');">havecolor</a></tt> <tt class="py-keyword">and</tt> <tt id="link-86" class="py-name"><a title="chimera.util.output.dotitles" class="py-name" href="#" onclick="return doclink('link-86', 'dotitles', 'link-1');">dotitles</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">"TERM"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-name">myt</tt><tt class="py-op">=</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">[</tt><tt class="py-string">"TERM"</tt><tt class="py-op">]</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt id="link-87" class="py-name" targets="Function chimera.util.output.xtermTitle()=chimera.util.output-module.html#xtermTitle"><a title="chimera.util.output.xtermTitle" class="py-name" href="#" onclick="return doclink('link-87', 'xtermTitle', 'link-87');">xtermTitle</a></tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">[</tt><tt class="py-string">"TERM"</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line"> </tt>
<a name="notitles"></a><div id="notitles-def"><a name="L114"></a><tt class="py-lineno">114</tt> <a class="py-toggle" href="#" id="notitles-toggle" onclick="return toggle('notitles');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#notitles">notitles</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="notitles-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="notitles-expanded"><a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">    <tt class="py-docstring">"turn off title setting"</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">    <tt id="link-88" class="py-name"><a title="chimera.util.output.dotitles" class="py-name" href="#" onclick="return doclink('link-88', 'dotitles', 'link-1');">dotitles</a></tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
</div><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"> </tt>
<a name="nocolor"></a><div id="nocolor-def"><a name="L118"></a><tt class="py-lineno">118</tt> <a class="py-toggle" href="#" id="nocolor-toggle" onclick="return toggle('nocolor');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#nocolor">nocolor</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="nocolor-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="nocolor-expanded"><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">    <tt class="py-docstring">"turn off colorization"</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">    <tt id="link-89" class="py-name"><a title="chimera.util.output.havecolor" class="py-name" href="#" onclick="return doclink('link-89', 'havecolor', 'link-0');">havecolor</a></tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">x</tt> <tt class="py-keyword">in</tt> <tt id="link-90" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-90', 'codes', 'link-42');">codes</a></tt><tt class="py-op">.</tt><tt id="link-91" class="py-name" targets="Method chimera.core.config.Config.keys()=chimera.core.config.Config-class.html#keys,Variable chimera.core.resources.ResourcesManager.keys=chimera.core.resources.ResourcesManager-class.html#keys,Method chimera.util.etree.ElementTree._ElementInterface.keys()=chimera.util.etree.ElementTree._ElementInterface-class.html#keys,Method chimera.util.image.Image.keys()=chimera.util.image.Image-class.html#keys,Method chimera.util.sexcatalog.SExtractorfile.keys()=chimera.util.sexcatalog.SExtractorfile-class.html#keys"><a title="chimera.core.config.Config.keys
chimera.core.resources.ResourcesManager.keys
chimera.util.etree.ElementTree._ElementInterface.keys
chimera.util.image.Image.keys
chimera.util.sexcatalog.SExtractorfile.keys" class="py-name" href="#" onclick="return doclink('link-91', 'keys', 'link-91');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt id="link-92" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-92', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-name">x</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-string">""</tt> </tt>
</div><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line"> </tt>
<a name="resetColor"></a><div id="resetColor-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="resetColor-toggle" onclick="return toggle('resetColor');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#resetColor">resetColor</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="resetColor-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="resetColor-expanded"><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-93" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-93', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"> </tt>
<a name="ctext"></a><div id="ctext-def"><a name="L127"></a><tt class="py-lineno">127</tt> <a class="py-toggle" href="#" id="ctext-toggle" onclick="return toggle('ctext');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#ctext">ctext</a><tt class="py-op">(</tt><tt class="py-param">color</tt><tt class="py-op">,</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ctext-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ctext-expanded"><a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-94" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-94', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt id="link-95" class="py-name" targets="Function chimera.util.output.ctext()=chimera.util.output-module.html#ctext"><a title="chimera.util.output.ctext" class="py-name" href="#" onclick="return doclink('link-95', 'ctext', 'link-95');">ctext</a></tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-96" class="py-name" targets="Variable chimera.util.etree.ElementTree._ElementInterface.text=chimera.util.etree.ElementTree._ElementInterface-class.html#text"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-96', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-97" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-97', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"> </tt>
<a name="bold"></a><div id="bold-def"><a name="L130"></a><tt class="py-lineno">130</tt> <a class="py-toggle" href="#" id="bold-toggle" onclick="return toggle('bold');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#bold">bold</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="bold-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="bold-expanded"><a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-98" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-98', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"bold"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-99" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-99', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-100" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-100', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"> </tt>
<a name="faint"></a><div id="faint-def"><a name="L133"></a><tt class="py-lineno">133</tt> <a class="py-toggle" href="#" id="faint-toggle" onclick="return toggle('faint');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#faint">faint</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="faint-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="faint-expanded"><a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-101" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-101', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"faint"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-102" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-102', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-103" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-103', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"> </tt>
<a name="white"></a><div id="white-def"><a name="L136"></a><tt class="py-lineno">136</tt> <a class="py-toggle" href="#" id="white-toggle" onclick="return toggle('white');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#white">white</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="white-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="white-expanded"><a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-104" class="py-name" targets="Function chimera.util.output.bold()=chimera.util.output-module.html#bold"><a title="chimera.util.output.bold" class="py-name" href="#" onclick="return doclink('link-104', 'bold', 'link-104');">bold</a></tt><tt class="py-op">(</tt><tt id="link-105" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-105', 'text', 'link-96');">text</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"> </tt>
<a name="teal"></a><div id="teal-def"><a name="L139"></a><tt class="py-lineno">139</tt> <a class="py-toggle" href="#" id="teal-toggle" onclick="return toggle('teal');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#teal">teal</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="teal-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="teal-expanded"><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-106" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-106', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"teal"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-107" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-107', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-108" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-108', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="turquoise"></a><div id="turquoise-def"><a name="L141"></a><tt class="py-lineno">141</tt> <a class="py-toggle" href="#" id="turquoise-toggle" onclick="return toggle('turquoise');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#turquoise">turquoise</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="turquoise-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="turquoise-expanded"><a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-109" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-109', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"turquoise"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-110" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-110', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-111" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-111', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="darkteal"></a><div id="darkteal-def"><a name="L143"></a><tt class="py-lineno">143</tt> <a class="py-toggle" href="#" id="darkteal-toggle" onclick="return toggle('darkteal');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#darkteal">darkteal</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="darkteal-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="darkteal-expanded"><a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-112" class="py-name" targets="Function chimera.util.output.turquoise()=chimera.util.output-module.html#turquoise"><a title="chimera.util.output.turquoise" class="py-name" href="#" onclick="return doclink('link-112', 'turquoise', 'link-112');">turquoise</a></tt><tt class="py-op">(</tt><tt id="link-113" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-113', 'text', 'link-96');">text</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"> </tt>
<a name="fuscia"></a><div id="fuscia-def"><a name="L146"></a><tt class="py-lineno">146</tt> <a class="py-toggle" href="#" id="fuscia-toggle" onclick="return toggle('fuscia');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#fuscia">fuscia</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment"># Don't use this one. It's spelled wrong!</tt> </tt>
</div><a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-114" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-114', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"fuchsia"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-115" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-115', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-116" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-116', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="fuchsia"></a><div id="fuchsia-def"><a name="L148"></a><tt class="py-lineno">148</tt> <a class="py-toggle" href="#" id="fuchsia-toggle" onclick="return toggle('fuchsia');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#fuchsia">fuchsia</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="fuchsia-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="fuchsia-expanded"><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-117" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-117', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"fuchsia"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-118" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-118', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-119" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-119', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="purple"></a><div id="purple-def"><a name="L150"></a><tt class="py-lineno">150</tt> <a class="py-toggle" href="#" id="purple-toggle" onclick="return toggle('purple');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#purple">purple</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="purple-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="purple-expanded"><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-120" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-120', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"purple"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-121" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-121', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-122" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-122', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"> </tt>
<a name="blue"></a><div id="blue-def"><a name="L153"></a><tt class="py-lineno">153</tt> <a class="py-toggle" href="#" id="blue-toggle" onclick="return toggle('blue');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#blue">blue</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="blue-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="blue-expanded"><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-123" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-123', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"blue"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-124" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-124', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-125" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-125', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="darkblue"></a><div id="darkblue-def"><a name="L155"></a><tt class="py-lineno">155</tt> <a class="py-toggle" href="#" id="darkblue-toggle" onclick="return toggle('darkblue');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#darkblue">darkblue</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="darkblue-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="darkblue-expanded"><a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-126" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-126', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"darkblue"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-127" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-127', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-128" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-128', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"> </tt>
<a name="green"></a><div id="green-def"><a name="L158"></a><tt class="py-lineno">158</tt> <a class="py-toggle" href="#" id="green-toggle" onclick="return toggle('green');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#green">green</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="green-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="green-expanded"><a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-129" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-129', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"green"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-130" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-130', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-131" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-131', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="darkgreen"></a><div id="darkgreen-def"><a name="L160"></a><tt class="py-lineno">160</tt> <a class="py-toggle" href="#" id="darkgreen-toggle" onclick="return toggle('darkgreen');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#darkgreen">darkgreen</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="darkgreen-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="darkgreen-expanded"><a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-132" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-132', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"darkgreen"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-133" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-133', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-134" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-134', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line"> </tt>
<a name="yellow"></a><div id="yellow-def"><a name="L163"></a><tt class="py-lineno">163</tt> <a class="py-toggle" href="#" id="yellow-toggle" onclick="return toggle('yellow');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#yellow">yellow</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="yellow-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="yellow-expanded"><a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-135" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-135', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"yellow"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-136" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-136', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-137" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-137', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="brown"></a><div id="brown-def"><a name="L165"></a><tt class="py-lineno">165</tt> <a class="py-toggle" href="#" id="brown-toggle" onclick="return toggle('brown');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#brown">brown</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="brown-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="brown-expanded"><a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-138" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-138', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"brown"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-139" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-139', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-140" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-140', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="darkyellow"></a><div id="darkyellow-def"><a name="L167"></a><tt class="py-lineno">167</tt> <a class="py-toggle" href="#" id="darkyellow-toggle" onclick="return toggle('darkyellow');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#darkyellow">darkyellow</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="darkyellow-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="darkyellow-expanded"><a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-141" class="py-name" targets="Function chimera.util.output.brown()=chimera.util.output-module.html#brown"><a title="chimera.util.output.brown" class="py-name" href="#" onclick="return doclink('link-141', 'brown', 'link-141');">brown</a></tt><tt class="py-op">(</tt><tt id="link-142" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-142', 'text', 'link-96');">text</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"> </tt>
<a name="red"></a><div id="red-def"><a name="L170"></a><tt class="py-lineno">170</tt> <a class="py-toggle" href="#" id="red-toggle" onclick="return toggle('red');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#red">red</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="red-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="red-expanded"><a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-143" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-143', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"red"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-144" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-144', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-145" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-145', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="darkred"></a><div id="darkred-def"><a name="L172"></a><tt class="py-lineno">172</tt> <a class="py-toggle" href="#" id="darkred-toggle" onclick="return toggle('darkred');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#darkred">darkred</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="darkred-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="darkred-expanded"><a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-146" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-146', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"darkred"</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-147" class="py-name"><a title="chimera.util.etree.ElementTree._ElementInterface.text" class="py-name" href="#" onclick="return doclink('link-147', 'text', 'link-96');">text</a></tt><tt class="py-op">+</tt><tt id="link-148" class="py-name"><a title="chimera.util.output.codes" class="py-name" href="#" onclick="return doclink('link-148', 'codes', 'link-42');">codes</a></tt><tt class="py-op">[</tt><tt class="py-string">"reset"</tt><tt class="py-op">]</tt> </tt>
</div><a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line"> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line"> </tt>
<a name="update_basic_spinner"></a><div id="update_basic_spinner-def"><a name="L176"></a><tt class="py-lineno">176</tt> <a class="py-toggle" href="#" id="update_basic_spinner-toggle" onclick="return toggle('update_basic_spinner');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#update_basic_spinner">update_basic_spinner</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="update_basic_spinner-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="update_basic_spinner-expanded"><a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">    <tt class="py-keyword">global</tt> <tt id="link-149" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-149', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">,</tt> <tt id="link-150" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-150', 'spinpos', 'link-2');">spinpos</a></tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">    <tt id="link-151" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-151', 'spinpos', 'link-2');">spinpos</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt id="link-152" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-152', 'spinpos', 'link-2');">spinpos</a></tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt> <tt class="py-number">500</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt id="link-153" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-153', 'spinpos', 'link-2');">spinpos</a></tt> <tt class="py-op">%</tt> <tt class="py-number">100</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-154" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-154', 'spinpos', 'link-2');">spinpos</a></tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">            <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt id="link-155" class="py-name"><a title="chimera.util.etree.ElementTree.ElementTree.write" class="py-name" href="#" onclick="return doclink('link-155', 'write', 'link-84');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">". "</tt><tt class="py-op">)</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">            <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt id="link-156" class="py-name"><a title="chimera.util.etree.ElementTree.ElementTree.write" class="py-name" href="#" onclick="return doclink('link-156', 'write', 'link-84');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"."</tt><tt class="py-op">)</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">    <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt class="py-name">flush</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line"> </tt>
<a name="update_scroll_spinner"></a><div id="update_scroll_spinner-def"><a name="L186"></a><tt class="py-lineno">186</tt> <a class="py-toggle" href="#" id="update_scroll_spinner-toggle" onclick="return toggle('update_scroll_spinner');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#update_scroll_spinner">update_scroll_spinner</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="update_scroll_spinner-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="update_scroll_spinner-expanded"><a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">    <tt class="py-keyword">global</tt> <tt id="link-157" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-157', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">,</tt> <tt id="link-158" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-158', 'spinpos', 'link-2');">spinpos</a></tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt id="link-159" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-159', 'spinpos', 'link-2');">spinpos</a></tt> <tt class="py-op">&gt;=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-160" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-160', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">        <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt id="link-161" class="py-name"><a title="chimera.util.etree.ElementTree.ElementTree.write" class="py-name" href="#" onclick="return doclink('link-161', 'write', 'link-84');">write</a></tt><tt class="py-op">(</tt><tt id="link-162" class="py-name" targets="Function chimera.util.output.darkgreen()=chimera.util.output-module.html#darkgreen"><a title="chimera.util.output.darkgreen" class="py-name" href="#" onclick="return doclink('link-162', 'darkgreen', 'link-162');">darkgreen</a></tt><tt class="py-op">(</tt><tt class="py-string">" \b\b\b"</tt><tt class="py-op">+</tt><tt id="link-163" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-163', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">[</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-164" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-164', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">-</tt><tt class="py-op">(</tt><tt id="link-165" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-165', 'spinpos', 'link-2');">spinpos</a></tt><tt class="py-op">%</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-166" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-166', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">        <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt id="link-167" class="py-name"><a title="chimera.util.etree.ElementTree.ElementTree.write" class="py-name" href="#" onclick="return doclink('link-167', 'write', 'link-84');">write</a></tt><tt class="py-op">(</tt><tt id="link-168" class="py-name" targets="Function chimera.util.output.green()=chimera.util.output-module.html#green"><a title="chimera.util.output.green" class="py-name" href="#" onclick="return doclink('link-168', 'green', 'link-168');">green</a></tt><tt class="py-op">(</tt><tt class="py-string">"\b "</tt><tt class="py-op">+</tt><tt id="link-169" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-169', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">[</tt><tt id="link-170" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-170', 'spinpos', 'link-2');">spinpos</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">    <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt class="py-name">flush</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">    <tt id="link-171" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-171', 'spinpos', 'link-2');">spinpos</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt id="link-172" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-172', 'spinpos', 'link-2');">spinpos</a></tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">*</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-173" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-173', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line"> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line"> </tt>
<a name="update_spinner"></a><div id="update_spinner-def"><a name="L196"></a><tt class="py-lineno">196</tt> <a class="py-toggle" href="#" id="update_spinner-toggle" onclick="return toggle('update_spinner');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.util.output-module.html#update_spinner">update_spinner</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="update_spinner-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="update_spinner-expanded"><a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">    <tt class="py-keyword">global</tt> <tt id="link-174" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-174', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">,</tt> <tt id="link-175" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-175', 'spinpos', 'link-2');">spinpos</a></tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">    <tt id="link-176" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-176', 'spinpos', 'link-2');">spinpos</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt id="link-177" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-177', 'spinpos', 'link-2');">spinpos</a></tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> <tt class="py-op">%</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-178" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-178', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">)</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">    <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt id="link-179" class="py-name"><a title="chimera.util.etree.ElementTree.ElementTree.write" class="py-name" href="#" onclick="return doclink('link-179', 'write', 'link-84');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"\b\b "</tt><tt class="py-op">+</tt><tt id="link-180" class="py-name"><a title="chimera.util.output.spinner" class="py-name" href="#" onclick="return doclink('link-180', 'spinner', 'link-3');">spinner</a></tt><tt class="py-op">[</tt><tt id="link-181" class="py-name"><a title="chimera.util.output.spinpos" class="py-name" href="#" onclick="return doclink('link-181', 'spinpos', 'link-2');">spinpos</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">    <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">.</tt><tt class="py-name">flush</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="chimera-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://chimera.ufsc.br/">Chimera - Observatoty Automation System</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    <a href="epydoc-log.html">Generated by Epydoc
    3.0beta1 on Sat Feb  7 18:36:59 2009</a>
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
